import abs from './absrightmenuitemaction.js'
class AnimateAction extends abs.IRightMenuItemAction {
    constructor(map) {
        super(map);
    }
    act2Click(evt, menuItem) {
        console.log("AnimateDestAction:xxx---------");
        var menu_prefixPos = menuItem.indexOf("_");
        var menu_prefix = menuItem.substr(0, menu_prefixPos);
        var subStrLen = menuItem.length - menu_prefixPos - 1;
        var menuSubItem = menuItem.substr(menu_prefixPos + 1, subStrLen);

        this.mapctrl.m_pAnimateINTF.setAnimate(menuSubItem);
    }
}

export default { AnimateAction }